﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EOS.Framework.Configuration.Tests.Mockups
{
    public class StoredClass
    {
        private int intValue;
        private string stringValue;

        public string StringValue
        {
            get { return stringValue; }
            set { stringValue = value; }
        }

        public int IntValue
        {
            get { return intValue; }
            set { intValue = value; }
        }

        public override bool Equals(object obj)
        {
            StoredClass storedObj = obj as StoredClass;
            return storedObj != null && storedObj.IntValue == IntValue && storedObj.StringValue == StringValue;
        }

        public override int GetHashCode()
        {
            return intValue.GetHashCode() * stringValue.GetHashCode();
        }

        public StoredClass()
        { }

        public StoredClass(int intValue, string stringValue)
        {
            this.intValue = intValue;
            this.stringValue = stringValue;
        }
	
    }
}
